I have seen corrosion cause issues. Despite the ECU being able to see and O2 signal, my wires were green about 18" up from the connector. I cut back and soldered in new wire and it helped resolve my weird idling/stalling issues. Of course I later replaced the entire EFI harness.